home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer (Italian) 48 / PC Gamer IT CD 48 2-2.iso / Starsiege / tribesdemo.exe / Disk1 / data1.cab / Tribes_Demo / base / scripts.vol / registervolume.cs < prev    next >
Encoding:
Text File  |  1999-09-14  |  467 b   |  26 lines

  1. // registervol volumename
  2. function registervolume( %VolName )
  3. {
  4.     if( %VolName == "")
  5.     {
  6.         echo("registervolume volumename");
  7.     }
  8.     else
  9.     {
  10.         if( focusServer )
  11.         {
  12.             %Name = strcat("MissionGroup\\Volumes\\", %VolName);
  13.             if( isObject( %Name) )
  14.             {
  15.             //        
  16.             }
  17.             else
  18.             {
  19.                 %Volume = strcat(%VolName, ".vol");
  20.                 newObject( %VolName, SimVolume, %Volume );
  21.                 addToSet( "MissionGroup\\Volumes", %VolName);
  22.             }
  23.             focusClient();
  24.         }
  25.     }
  26. }